From: Florian Müllner Date: Fri, 13 Oct 2017 15:46:58 +0000 (+0200) Subject: keyboard: Minor cleanup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~994^2^2~114 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d5f081a1086c0b2539e611fbe8368529dc9520f9;p=gnome-shell.git keyboard: Minor cleanup _syncEnabled() will call _setupKeyboard() if necessary, so no need to call it explicitly before. https://bugzilla.gnome.org/show_bug.cgi?id=788188 --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index da36c3615..87635ce83 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -324,10 +324,8 @@ var Keyboard = new Lang.Class({ _sync: function () { if (this._keyboard && - this._keyboard.keyboard_type != this._keyboardSettings.get_string(KEYBOARD_TYPE)) { + this._keyboard.keyboard_type != this._keyboardSettings.get_string(KEYBOARD_TYPE)) this._destroyKeyboard(); - this._setupKeyboard(); - } this._syncEnabled(); },